const toast = ({
	title,
	icon = 'none',
	duration = 2000
}) => {
	uni.showToast({
		title:title,
		icon:icon,
		duration:duration
	})
}

toast.error = ({
	title,
	duration=2000
}) => {
	uni.showToast({
		title:title,
		icon:'error',
		duration:duration
	})
}

export default toast